import request from '@/utils/request'

// 查询零件列表
export function list(query) {
  return request({
    url: '/buy/buy0010/list',
    method: 'get',
    params: query
  })
}

// 查询库存信息详细
export function getInfo(id) {
  return request({
    url: '/buy/buy0010/' + id,
    method: 'get'
  })
}

// 新增请购单明细
export function save(data) {
  return request({
    url: '/buy/buy0010/save',
    method: 'post',
    data: data
  })
}

// 删除请购单
export function delItem(data) {
  return request({
    url: '/buy/buy0010/delItem',
    method: 'post',
    data: data
  })
}
